const arr=[4,5,6,7,8,9];
const arr1=[1,2,3,4,5,...arr];
console.log(arr1);